package org.springsource.roo.extrack.server.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;
import org.springsource.roo.extrack.server.domain.Employee;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooEntity
public class Report {

    private String purpose;

    private String notes;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date created;

    private String department;

    @ManyToOne
    private Employee reporter;

    @ManyToOne
    private Employee approvedSupervisor;
}
